const dayjs = require('dayjs')

export function parseDate (date, format) {
  format = format || 'YYYY-MM-DD HH:mm:ss'
  return dayjs(date).format(format)
}
